using System;
using System.Collections.Generic;
using System.Linq;
using TestMonkey.Models;

namespace TestMonkey.TestRunners
{
	public class SilverlightToolkit : MSTest
	{
		public override CodeString Imports
		{
			get
			{
				return "using Microsoft.VisualStudio.TestTools.UnitTesting;" +
					Environment.NewLine + "using Microsoft.Silverlight.Testing;";
			}
		}

		public override CodeString TagAttributes(IList<string> tags)
		{
			var tagList = (from t in tags 
                           let t2 = t.Replace("\"", "\"\"") 
                           select string.Format("[Tag(@\"{0}\")]", t2));

			return string.Join(Environment.NewLine + "\t", tagList);
		}

        public override CodeString TestBaseClass
        {
            get { return ": SilverlightTest"; }
        }


	}
}
